package com.jeeplus.modules.monitor.task;

import com.jeeplus.common.utils.SpringContextHolder;
import com.jeeplus.modules.buzz.remindsend.mapper.RemindSendMapper;
import com.jeeplus.modules.buzz.remindsend.service.RemindSendService;
import com.jeeplus.modules.monitor.entity.Task;
import com.jeeplus.modules.sys.mapper.SystemMapper;
import com.jeeplus.modules.sys.mapper.UserMapper;
import org.quartz.DisallowConcurrentExecution;
import org.springframework.beans.factory.annotation.Autowired;

@DisallowConcurrentExecution
public class SqlAutoProduct extends Task {
	private static UserMapper userMapper = SpringContextHolder.getBean(UserMapper.class);
	private static SystemMapper systemMapper = SpringContextHolder.getBean(SystemMapper.class);

	@Autowired
	private RemindSendService remindSendService;
	@Autowired
	private RemindSendMapper remindSendMapper;

	@Override
	public void run() {
		systemMapper.sqlAutoProduct();
		System.out.println("同步各公司产品资料数据。");
	}
}


